#include <cjson/cJSON.h>
#include <stdio.h>

int main()
{
    cJSON* obj = cJSON_CreateObject();
    cJSON_AddNumberToObject(obj, "tem", 26.1);
    cJSON_AddNumberToObject(obj, "hum", 70.0);
    cJSON_AddNumberToObject(obj, "id", 0);
    printf("%s\n", cJSON_Print(obj));
    return 0;
}